// $active-color: #17B3A3;
$active-color: #de2728;
.ask-city-cascader-box{
    width: 220px;
    &.el-popover{
        padding: 12px 0;
    }
    .city-cascader-panel__header{
        width: 100%;
    }
    .city-cascader-panel__header-nav{
        width: 100%;
    }
    .city-cascader-panel__header-list{
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0;
        list-style-type: none;
        position: relative;
        z-index: 1;
        margin: 0;
        &::after{
            content: "";
            display: block;
            width: 100%;
            height: 2px;
            background-color: #ccc;
            position: absolute;
            bottom: 0;
            left: 0;
            z-index: 1;
        }
    }
    .city-cascader-panel__header-item{
        min-width: 80px;
        padding: 0 10px;
        height: 40px;
        line-height: 40px;
        white-space: nowrap;
        text-align: center;
        font-size: 14px;
        transition: color .3s linear;
        color: #333;
        cursor: pointer;
        position: relative;
        z-index: 2;
        overflow: hidden;
        &::after{
            content: "";
            display: block;
            width: 100%;
            height: 2px;
            background-color: $active-color;
            position: absolute;
            bottom: 0;
            left: 0;
            z-index: 3;
            transform-origin: 50%;
            transform: scaleX(0);
            transition: transform .3s ease-in-out;
            will-change: transform;
        }
        &.active,
        &:hover{
            color: $active-color;
            &::after{
                transform: scaleX(1);
            }
        }
    }
    .city-cascader-panel__body{
        width: 100%;
        height: 200px;
        padding: 20px 0;
        position: relative;
        display: flex;
        flex-flow: column;
        &.recommend{
            height: 300px;
        }
        .city-cascader-panel__body-box{
            display: flex;
            align-items: stretch;
            overflow: hidden;
            width: 100%;
            height: 100%;
            flex: 1;
        }
        .city-cascader-panel__body-panel{
            width: 100%;
            flex: 0 0 100%;
            height: 100%;
        }
    }
    .city-cascader-panel__footer{
        padding: 0 12px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        .sure-btn{
            color: $active-color;
            border: 1px solid $active-color;
            padding: 4px 16px;
            outline: none;
            font-size: 14px;
            line-height: 1.4;
            border-radius: 14px;
            background: transparent;
            cursor: pointer;
            transition: color .3s, background .3s;
            &:hover{
                color: #fff;
                background: $active-color;
            }
        }
    }
    .city-cascader__label{
        width: 100%;
        height: 40px;
        line-height: 40px;
        white-space: nowrap;
        border: 1px solid #ced4da;
        border-radius: 4px;
        padding: 0 30px 0 10px;
        font-size: 14px;
        color: #333;
        position: relative;
        z-index: 1;
        cursor: pointer;
        overflow: hidden;
        .city-cascader__label-text{
            width: 100%;
            height: 100%;
            line-height: inherit;
            font: inherit;
            color: inherit;
            &.placeholder{
                color: #C0C4CC;
            }
        }
        .city-cascader__label-icon{
            position: absolute;
            width: 30px;
            height: 100%;
            background: #fff;
            top: 0;
            right: 0;
            z-index: 2;
            line-height: inherit;
            font: inherit;
            color: inherit;
            cursor: pointer;
            overflow: hidden;
            .city-cascader__label-icon-box{
                width: 100%;
                height: 100%;
                transform: rotate(180deg);
                transform-origin: 50% 50%;
                transition: transform .3s;
                will-change: transform;
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
                .el-input__icon{
                    width: 100%;
                    line-height: normal;
                }
                .close-icon{
                    position: absolute;
                    top: 0;
                    left: 0;
                    background: #fff;
                    opacity: 0;
                    transition: opacity .3s;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 100%;
                    height: 100%;
                }
                &.active{
                    transform: rotate(0deg);
                }
            }
        }
        &:hover{
            .city-cascader__label-icon .city-cascader__label-icon-box.has-label .el-input__icon{
                opacity: 0;
            }
            .city-cascader__label-icon .city-cascader__label-icon-box .close-icon,
            .city-cascader__label-icon .city-cascader__label-icon-box.has-label .close-icon{
                opacity: 1;
            }
        }
    }
    .ask-city-panel__recommend-title{
        white-space: nowrap;
        font-size: 12px;
        color: #999;
        padding: 0 16px;
    }
    .ask-city-panel__recommend-list{
        width: 100%;
        list-style-type: none;
        margin: 0;
        padding: 10px 12px;
        &::after{
            content: ".";
            display: block;
            clear: both;
            font-size: 0;
            line-height: 0;
            visibility: hidden;
        }
        .ask-city-panel__recommend-item{
            float: left;
            border: 1px solid $active-color;
            text-align: center;
            height: 24px;
            line-height: 24px;
            padding: 0 12px;
            white-space: nowrap;
            cursor: pointer;
            font-size: 12px;
            color: $active-color;
            margin: 0 4px;
            transition: color .3s, background .3s;
            &:hover,
            &.active{
                color: #fff;
                background: $active-color;
            }
        }
    }
    .ask-city-panel-box{
        width: 100%;
        height: 100%;
        overflow: auto;
        &::-webkit-scrollbar {
            width: 4px;
            height: 8px;
        }


        /*定义滚动条轨道 内阴影+圆角*/

        &::-webkit-scrollbar-track {
            background-color: transparent;
        }


        /*定义滑块 内阴影+圆角*/

        &::-webkit-scrollbar-thumb {
            border-radius: 4px;
            background-color: #c1c1c1;
        }
        .ask-city-panel__list{
            width: 100%;
            padding: 0;
            list-style-type: none;
            position: relative;
            z-index: 1;
            margin: 0;
        }
        .ask-city-panel__item{
            width: 100%;
            padding: 0 32px;
            height: 40px;
            line-height: 40px;
            font-size: 14px;
            font-weight: 300;
            cursor: pointer;
            transition: background .3s,color .3s;
            position: relative;
            &::after{
                position: absolute;
                left: 12px;
                font-family: element-icons;
                content: "\e6da";
                font-size: 12px;
                font-weight: 700;
                -webkit-font-smoothing: antialiased;
                opacity: 0;
                transition: opacity .3s;
            }
            &.red{
                color: #F50057;
            }
            &:hover{
                background-color: #F5F7FA;
            }
            &.active{
                color: $active-color;
                &::after{
                    opacity: 1;
                }
            }
        }
    }
}
